package org.leyi.shop.common;

/**
 *
 * description:  存储所有常量
 * @author  lenovo
 * create 2024/5/5-23:08 */
public class Constant {
    /**
     * redis延时队列的键值
     */
    public static final String REDIS_QUEUE_FOR_STORING_USER_ORDERS="leyi_order_queue";
    /**
     * redis延时队列的读写锁键值
     */
    public static final String REDIS_QUEUE_LOCK_FOR_STORING_USER_ORDERS="leyi_order_queue_read_write_lock";
    /**
     * 密码的盐值
     */
    public static final String PASSWORD_SALT="leyi_shop3hkj/d3.1khfe,9";
    /**
     * session保存登录态的键值
     */
    public static final String REQUEST_SESSION_USER_KEY="leyi_session_user";
    /**
     * 管理员
     */
    public static final int ADMIN_ROLE=1;
    /**
     * 超级管理员
     */
    public static final int SUPER_ADMIN_ROLE=2;
    /**
     * 订单倒计时
     */
    public static final int ORDER_COUNTDOWN=30;
    /**
     * 订单状态：已付款
     */
    public static final int ORDER_STATE_PAY=1;
    /**
     * 订单状态：已取消
     */
    public static final int ORDER_STATE_CANCEL=2;
    /**
     * 订单状态：已退货
     */
    public static final int ORDER_STATE_REFUND=0;
    /**
     *商品售空
     */
    public static final int PRODUCT_STATE_EMPTY=0;
    /**
     *商品正常状态
     */
    public static final int PRODUCT_STATE_NORMAL=1;
    /**
     * 商品下架
     */
    public static final int PRODUCT_STATE_TAKE_OFF=2;

}
